//
//  YHYLoadTwoTableViewCell.m
//  TTMusic
//
//  Created by yanghuiyan on 16/4/1.
//  Copyright © 2016年 cpy. All rights reserved.
//

#import "YHYLoadTwoTableViewCell.h"

@implementation YHYLoadTwoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.bigLabel = [UILabel new];
//        self.bigLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.bigLabel];
        
        self.smallLabel = [UILabel new];
//        self.smallLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.smallLabel];
        
        self.mvButton = [UIButton buttonWithType:(UIButtonTypeSystem)];
        [self.mvButton setImage:[[UIImage imageNamed:@"mvplay"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
        [self.contentView addSubview:self.mvButton];
        
        self.pullButton = [UIButton buttonWithType:(UIButtonTypeSystem)];
        [self.pullButton setImage:[[UIImage imageNamed:@"pull"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
        
        [self.contentView addSubview:self.pullButton];
        
        
        self.finishLabel = [UILabel new];
//        self.finishLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.finishLabel];
        
        self.songImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.songImageView];
        
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    
    
    self.bigLabel.frame = CGRectMake(60, 5, 190, 20);
    
    self.smallLabel.frame = CGRectMake(60, 30, 190, 20);
    
    self.songImageView.frame = CGRectMake(5, 5, 40, self.contentView.bounds.size.height - 10);
    
    self.mvButton.frame = CGRectMake(122, 0, 30, 30);
    
    self.pullButton.frame = CGRectMake(Width - 40, 20, 20, 20);
    
    self.finishLabel.frame = CGRectMake(20, 40, 20, 20);

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
